// websocket token鉴权方法
// import store from '../store' // 解决商业版store路径引用报错
import { getToken } from './auth'

export function sendTokenVerify (store, call) {
  // 回调函数可传
  let ssSubMgr = store.getters['wsSubMgr']
  let CrossStatSubMgr = ssSubMgr.getByName('CrossState')
  let sub = CrossStatSubMgr.getSubByType('token/verify', 'asc')
  let reqData = [getToken()]
  sub.start(reqData)
  sub.addCare(call, this)
}
